define(['../../../js/lib/other/sweet-alert'],function() {
    return ['$scope','$location', '$interval','$timeout','$route', function($scope,$location,$interval,$timeout,$route) {
		$scope.$emit("top-show",'true');//顶部显示
    	$scope.$emit('menuTypeLight','mine'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','false'); 	//显示底部menu
    	$scope.$emit('flag-tag','4');//显示底部文字
    	
    	//清空相关数据
    	transData.pwd1 = "",transData.pwd2 = "",transData.mobileCheckNo = "";
    	
    	
    	//监听注册点击事件
    	$scope.$on('registerEvent', function(event,data){
    		if(data){
    			$scope.$emit("goNext","/register");
    		}
        });
    	
    	//点击登录
    	$scope.goLogin = function(){
    		$scope.$emit("goNext","/login");
    	}
    	
    	//点击关于我们
    	$scope.aboutUs = function(){
    		$scope.$emit("goNext","/aboutUs");
    	}
    	
    	//点击帮助
    	$scope.helpUs = function(){
    		$scope.$emit("goNext","/helpUs");
    	}


    	//=========================================================


		$scope.avatarImage = "background-image:url(img/head_portrait.png)";
		$scope.userName = "立即登录";
		$scope.bindNo = "登录后享受更多特权";
		$scope.logined = false;
		$scope.isPhone = false;


    	
        $scope.$apply();
    }];
});